//
//  TrendItem+CoreDataClass.swift
//  RssFly
//
//  Created by shen on 2023/10/16.
//

import CoreData

@objc(TrendItem)
public class TrendItem: NSManagedObject {
    static func create(
        in managedObjectContext: NSManagedObjectContext,
        trend: Trend,
        item: Item
    ) -> TrendItem {
        let trendItem = self.init(context: managedObjectContext)
        trendItem.id = UUID()
        trendItem.trend = trend
        trendItem.item = item

        return trendItem
    }
}

